# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=coreshot
pkgver=4.3.0
pkgrel=0
pkgdesc="A screen capture utility from C-Suite"
arch="all"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev qt5-qtx11extras-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/coreshot/-/archive/v$pkgver/coreshot-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check"

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
1ed4621d6f9a8aa6bd97848657f8254d5f061fabe851e07145ea8346cc6b63abab188d5c2feaa4d0c22a2200ec82ef40a4797d891506e858632446cb20800dfe  coreshot-4.3.0.tar.gz
"
